﻿#ifndef MYWIDGET_H
#define MYWIDGET_H

#include <QWidget>
#include <qvector.h>
#include <qqueue>

#pragma execution_character_set("utf-8")

class MyWidget : public QWidget
{
    Q_OBJECT
public:
    explicit MyWidget(QWidget *parent = nullptr);
protected:
    void paintEvent(QPaintEvent *event);

private:
    void _cac();
    void _work_a_grid();

    int _m;
    int _n;
    QVector<QVector<int>> _array;
    QQueue<int> _q1;
    QQueue<int> _q2;
    int _count;

signals:

public slots:
    void sc();

private slots:
    void gx();
    void resize_array(int m,int n);
    void set_m_Value(int v);
    void set_n_Value(int v);
};

#endif // MYWIDGET_H
